home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11297 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  706 b 

  1. Path: elroy.jpl.nasa.gov!usc!usc!not-for-mail
  2. From: sching@castor.usc.edu (James Ching)
  3. Newsgroups: comp.lang.c
  4. Subject: Global and static variables initial values...
  5. Date: 22 Mar 1996 16:42:53 -0800
  6. Organization: University of Southern California, Los Angeles, CA
  7. Sender: sching@castor.usc.edu
  8. Message-ID: <4ivhed$n8j@castor.usc.edu>
  9. NNTP-Posting-Host: castor.usc.edu
  10.  
  11. Hi,
  12.  
  13. According to the "The C Programming Language",
  14.  
  15. "In the absence of explicit initialization, external and static variables
  16.  are guaranteed to be initialized to zero."
  17.  
  18. I wonder if this is a compiler dependent feature. Or required by C?
  19.  
  20. James
  21. -- 
  22.  
  23. While money can't buy you love, 
  24.    it puts you into great bargaining position ...
  25.  
  26.